home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_57.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  133KB  |  816x1056  |  8-bit (256 colors)
Labels: book | reckoner | sky | windowpane
OCR: Lesson 11 I-53 Logical operators There will probably be occasions in future programs in which you will have performed two com parison operations, and the resulting flags from those operations will be sitting on top of the stack How the program proceeds from there depends on the state of those two flags one flag true and the other false they may meet the prerequisite that .only one of the comparisons needs to be true for certain operation to take place is less than n2 n1 not Jess than zero) Conversely. you may need both flags to be TRUE for certain operation to take place n1 ic both less than randless than zero) In these special cases you can use the logical operators AND and OR which we'll now describe Both these operations look at the binary makeup of two numbers and produce a result. For ...